﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
using App1.DataModel;

// La plantilla de elemento Control de usuario está documentada en http://go.microsoft.com/fwlink/?LinkId=234236

namespace App1.Map
{
    public sealed partial class EventLocation : UserControl
    {
        private Event myEvent;

        public String EventName
        {
            get { return this.myEvent.Title; }
        }

        public String Time
        {
            get { return this.myEvent.Subtitle; }
        }

        public EventLocation(Event e)
        {
            this.DataContext = this;
            this.InitializeComponent();
            this.myEvent = e;
        }
    }
}
